import _http from '@/utils/http'

export default {
    goodsTypeSearch(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsType/search',
            apiName: '查询-分页',
        }, params, loading, headers)
    },
    goodsTypeAdd(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsType/add',
            apiName: '新增类型',
        }, params, loading, headers)
    },
    goodsTypeModify(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsType/modify',
            apiName: '修改类型',
        }, params, loading, headers)
    },
    goodsTypeModifyStatus(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsType/modifyStatus',
            apiName: '修改类型状态',
        }, params, loading, headers)
    },
    goodsTypeDelete(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsType/delete',
            apiName: '删除类型',
        }, params, loading, headers)
    },
    goodsTypeListSimple(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsType/list/simple',
            apiName: '商品类型下拉',
        }, params, loading, headers)
    },


    goodsCategorySearch(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsCategory/search',
            apiName: '分类查询-分页',
        }, params, loading, headers)
    },
    goodsCategoryAdd(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsCategory/add',
            apiName: '新增分类',
        }, params, loading, headers)
    },
    goodsCategoryModify(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsCategory/modify',
            apiName: '修改分类',
        }, params, loading, headers)
    },
    goodsCategoryModifyStatus(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsCategory/modifyStatus',
            apiName: '修改分类状态',
        }, params, loading, headers)
    },
    goodsCategoryDelete(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsCategory/delete',
            apiName: '删除分类',
        }, params, loading, headers)
    },
    goodsCategoryListSimple(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsCategory/list/simple',
            apiName: '商品分类下拉-前置条件:商品类型id',
        }, params, loading, headers)
    },



    goodsBrandSearch(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsBrand/search',
            apiName: '品牌查询-分页',
        }, params, loading, headers)
    },
    goodsBrandAdd(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsBrand/add',
            apiName: '新增品牌',
        }, params, loading, headers)
    },
    goodsBrandModify(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsBrand/modify',
            apiName: '修改品牌',
        }, params, loading, headers)
    },
    goodsBrandModifyStatus(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsBrand/modifyStatus',
            apiName: '批量修改品牌状态',
        }, params, loading, headers)
    },
    goodsBrandDelete(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsBrand/delete',
            apiName: '批量删除品牌',
        }, params, loading, headers)
    },
    goodsInfoRechargeType(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsInfo/list/rechargeType',
            apiName: '品牌下的充值类型列表',
        }, params, loading, headers)
    },
    goodsTagList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goods/tag/list',
            apiName: '获取已有标签',
        }, params, loading, headers)
    },
}
